package com.study.day20190710;

public class HashCodeTest {
    public static void main(String[] args) {
        String a="a";
        String b=new String("a");
        System.out.println(a==b);
        System.out.println(a.equals(b));
        System.out.println(a.hashCode()+";;;;"+b.hashCode());


    }

    @Override
    public int hashCode(){
        return 1;
    }
}
